<%-- 
    Document   : refreshdemo
    Created on : 2024年4月14日, 上午9:04:27
    Author     : JUST
--%>

<%@page import="java.util.Date"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            Date now = new Date();
            response.setHeader("refresh", "2");
        %>
        <h1><%= Math.random() %></h1>
        <h1><%=now%></h1>
    </body>
</html>
